package Day08;

import java.util.Scanner;

public class DemoString7 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String s=sc.nextLine();
        String ss=fanz(s);
        System.out.println(ss);

    }
    public static String fanz(String s){
        String ss="";
        for (int i = s.length()-1; i >=0 ; i--) {
            ss+=s.charAt(i);
        }
        return ss;
    }
}
